import { request } from './request';

// 获取用户咨询记录
function getConsultationRecords(userId) {
  return request({
    url: `/consultation/user/${userId}`,
    method: 'GET'
  });
}

// 更新评价状态
function updateEvaluateStatus(id, evaluateStatus) {
  return request({
    url: `/consultation/evaluate`,
    method: 'POST',
    data: {
      id,
      evaluateStatus
    }
  });
}

module.exports = {
  getConsultationRecords,
  updateEvaluateStatus
};
